package com.ai.wxy.spring.jpa.user.entity;

import com.ai.spring.data.jpa.domain.JpaEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户角色
 *
 * @author 石头
 * @Date 2019/11/19
 * @Version 1.0
 **/
@Data
@Entity
@Table(name="jpa_user_role")
public class UserRole extends JpaEntity {
    /**主键*/
    @Id
    private Long id;
    /**用户ID*/
    @Column(name = "user_id")
    private Long userId;
    /**角色ID*/
    @Column(name = "role_id")
    private Long roleId;
    /**状态(0-无效,1-正常,2-冻结)*/
    private Integer status;
}
